

-- D:\GOA\reslibrary\templete\res\item\item.pad.lua.xsl
gr_module("gm_xinbanchunzhongyun")

cgfwageitemItem = inherit(GmCtrl.ControlBase):name("cgfwageitemItem")

cgfwageitemItem.init = function (self,parent,aid)

	local top = self
	local win = parent.hostWindow
	local fid = aid or "cgfwageitemItem"
	GmCtrl.ControlBase.init(self,parent,fid,true)

	
	self.id = self:get_child("id")
	
	self.user_id = self:get_child("user_id")
	
	self.name = self:get_child("name")
	
	self.yuexin = self:get_child("yuexin")
	
	self.gongzi = self:get_child("gongzi")
	
	self.zhiwu = self:get_child("zhiwu")
	
	self.nianjia = self:get_child("nianjia")
	
	self.jiaban = self:get_child("jiaban")
	
	self.shisu = self:get_child("shisu")
	
	self.quanqin = self:get_child("quanqin")
	
	self.baoxian = self:get_child("baoxian")
	
	self.other = self:get_child("other")
	
	self.queqin = self:get_child("queqin")
	
	self.queqin_day = self:get_child("queqin_day")
	
	self.ticheng = self:get_child("ticheng")
	
	self.jixiao = self:get_child("jixiao")
	
	self.yanfa = self:get_child("yanfa")
	
	self.yingfae = self:get_child("yingfae")
	
	self.geshui = self:get_child("geshui")
	
	self.shifae = self:get_child("shifae")
	
	self.month = self:get_child("month")
	
	self.update_time = self:get_child("update_time")
	
	
	self:set_click(function(self)
		local ttop = top
		top.hostWindow:addNavFrame('__modal__info',nil,function(frame)
			local tttop = ttop
			print('########## $$$$$$$ 0')
			if frame and frame.set_data then
				frame:set_data(tttop.data)
			end
		end)
	end)
	
end


cgfwageitemItem.set_data = function(self,data)
	self.data = data
	for a,b in pairs(data) do
		if data[a] and self[a] and self[a].set_inner_text and self[a].is_init and self[a]:is_init() then
			self[a]:set_inner_text(tostring(data[a]))
		end
	end
end


	